<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x" style="overflow:hidden;">
    	<div style="float:left;margin-right:50px;">
    		<a href='<?php echo $user['is_partner'] == 1 ? U('user/partner') : U('user/user_list');?>'><em>会员列表</em></a><span>|</span>
        <a href='javascript:;' class="on"><em>会员帐户变动明细</em></a><span>|</span>
        <a href='<?php echo U('user/account_log_add', 'uid='.$user['id']);?>' ><em>调节会员帐户</em></a>
      </div>
    	<div style="color:#000;">
    	<strong>会员邮箱：</strong><?php echo $user['email'];?>  &nbsp; &nbsp; &nbsp;
<?php echo $user['username'];?>
&nbsp;&nbsp;<strong>可用资金帐户：</strong>
<?php echo $user['user_money'];?>
<!--&nbsp;<strong>冻结资金帐户：</strong>
<?php echo $user['frozen_money'];?>
-->&nbsp;&nbsp;<strong>等级积分帐户：</strong>
<?php echo $user['rank_points'];?>
&nbsp;&nbsp;<strong>消费积分帐户：</strong>
<?php echo $user['pay_points'];?> 
    	</div>
    </div>
</div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th align='center' width="200">帐户变动时间</th>
            <th align='center'>帐户变动原因</th>
            <th align='center' width="100">可用资金</th>
<!--            <th align='center' width="100">冻结资金</th>-->
            <th align='center' width="100">等级积分</th>
            <th align='center' width="100">消费积分</th>
            </tr>
        </thead>
     <tbody>
   <?php 
   	if(isset($logList) && $logList):
   		foreach ($logList as $v):
   ?>
			<tr>
					<td align='left'><?php echo date('Y-m-d H:i:s',$v['change_time']);?></td>
					<td align='left'><?php echo $v['change_desc'];?></td>
					<td align='center'><?php echo ($v['user_money']<0 ? '<font color="red">- </font>' : '<font color="blue">+</font>') .abs($v['user_money']);?></td>
<!--					<td align='center'><?php echo $v['fronze_money'];?></td>-->
					<td align='center'><?php echo ($v['rank_points']<0 ? '<font color="red">- </font>' : '<font color="blue">+</font>') .abs($v['rank_points']);?></td>
					<td align='center'><?php echo ($v['pay_points']<0 ? '<font color="red">- </font>' : '<font color="blue">+</font>') .abs($v['pay_points']);?></td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
    </table>
  <div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>